package com.xinqi.modules.databank.v1.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.mybatis.data.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 课程题库表实体层
 *
 * @author: system
 * @date: 2023/03/15
 */
@Setter
@Getter
@TableName("co_course_question_library")
public class CourseQuestionLibraryEntity extends BaseEntity {
    /** 课程内容id */
    @TableField(value = "content_id")
    private Long contentId;
    /** 1互动课件,4测评,6互动视频 */
    @TableField(value = "content_type")
    private Integer contentType;
    /** 互动视频和课件切片id */
    @TableField(value = "resource_part_id")
    private Long resourcePartId;
    /** 1:判断题 2：单选题 3：多选题 4：不定项题 5：填空题 6：简单题 */
    @TableField(value = "type")
    private Integer type;
    /** 题目 */
    @TableField(value = "question")
    private String question;
    /** 题干 */
    @TableField(value = "content")
    private String content;
    /** 题干文件 */
    @TableField(value = "question_file")
    private String questionFile;
    /** 答案 */
    @TableField(value = "answer")
    private String answer;
    /** 答案文件url */
    @TableField(value = "answer_file")
    private String answerFile;
    /** 选项设置 */
    @TableField(value = "options")
    private String options;
    /** 分值 */
    @TableField(value = "score")
    private BigDecimal score;
    /** 题目排序 */
    @TableField(value = "sort")
    private Integer sort;
    /** 答案解析 */
    @TableField(value = "analysis")
    private String analysis;
    /** 答案解析文件 */
    @TableField(value = "analysis_file")
    private String analysisFile;
}
